﻿using HCQ2_Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace HCQ2UI_Logic
{
    /// <summary>
    ///  首页控制器
    /// </summary>
    public class IndexController : BaseLogic
    {
        /// <summary>
        /// 首页
        /// </summary>
        /// <returns></returns>
        public ActionResult List()
        {
            return View("List");
        }

        #region 政策新闻

        [HCQ2_Common.Attributes.Load]
        public ActionResult DocumentDetail(string documentID)
        {
            return View("DocumentDetail");
        }

        /// <summary>
        /// 获取政策对象
        /// </summary>
        /// <param name="documentID"></param>
        /// <returns></returns>
        public ActionResult GetDocument(string documentID)
        {
            return null;
        }

        #endregion

    }

    public class StaticWorkDay
    {
        /// <summary>
        /// 总人数
        /// </summary>
        public int totalPerson { get; set; }
        /// <summary>
        /// 打卡人数
        /// </summary>
        public int workPerson { get; set; }
        /// <summary>
        /// 打卡率
        /// </summary>
        public double pepe { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string unitName { get; set; }
    }
}
